<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function Fn(name,age){
            //私有
            this.name=name;
            this.age=age;
        }
        //公有
        Fn.prototype.show=function(){}
        Fn.prototype.num=100;

        //静态
        Fn.say=function(){}
        Fn.str="hello";

        var f=new Fn("lili",18);
        console.log(f);
    </script>
</body>
</html>